import { request } from '../service'

export const list = (params = {}) => request({
  url: '/database/connect',
  method: 'post',
  data: params
})
export const getByName = (params = {}) => request({
  url: '/database/detail',
  method: 'post',
  data: params
})
export const generate = (params = {}) => request({
  url: '/database/generate',
  method: 'post',
  data: params
})
export const download = (params = {}) => request({
  url: '/database/download',
  method: 'post',
  data: params
})
export const getFiles = (params = {}) => request({
  url: '/database/getFiles',
  method: 'post',
  data: params
})
export const updateFile = (params = {}) => request({
  url: '/database/updateFile',
  method: 'post',
  data: params
})
